package com.example.e_comm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.e_comm.entity.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionService extends IService<Permission> {
    List<Permission> getPermissionByPage(Page<Permission> page);
    IPage<Permission> getPermissionByPageWithCount(Page<Permission> page, String keyword);
    List<Permission> getPermissionByUserId(Long userId);
    List<Permission> getPermissionByRoleId(Long roleId);
    Set<String> getPermissionByUserIdSet(Long userId);
    Set<String> getPermissionByRoleIdSet(List roleId);


}
